import {createRouter, createWebHistory} from 'vue-router'
const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            name: '首页',
            path: '/',
            component: () => import('../views/home/index.vue')
        },
        {
            name: '筛选页',
            path: '/scree/:id',
            component: () => import('../views/home/scree.vue')
        },
        {
            name: '做题',
            path: '/do/:id',
            component: () => import('../views/home/doExercise.vue')
        },
        {
            name: '旧首页',
            path: '/outdated',
            component: () => import('../views/home/index1.vue')
        },
    ]
})
export default router;
